package com.spontaneappnew;

import java.util.ArrayList;

public class Categories_Places {
	
	private Category categoryId;
	private ArrayList<Place> placeList;
	
	public Categories_Places(Category category, ArrayList<Place> places) {
		this.placeList = places;
		this.categoryId=category;
	}
	
	public Categories_Places(Category category) {
		this.placeList = new ArrayList<Place>();
		this.categoryId=category;
	}

	public Category getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Category categoryId) {
		this.categoryId = categoryId;
	}

	public ArrayList<Place> getPlaceList() {
		return placeList;
	}

	public void setPlaceList(ArrayList<Place> placeList) {
		this.placeList = placeList;
	}
	
	public void addPlace(Place pl){
		this.placeList.add(pl);
	}
	
}
